package cn.net.control;

import cn.net.model.CacheDataObject;
import cn.net.netmodel.RequestParams;
import cn.net.service._5JService;
import com.alibaba.fastjson.JSON;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class _5JControl {

    @Autowired
    private _5JService jService;

    @GetMapping("5j")
    public String get5J(RequestParams params) {
        CacheDataObject jCdo = jService.get5JCdo(params);
        String string = JSON.toJSONString(jCdo);
        return string;
    }
}
